package com.yitianyigexiangfa.designpattern.adapter.api.impl;

import com.yitianyigexiangfa.designpattern.adapter.api.Duck;

/**
 * 绿头鸭
 *
 * @author Bill Lau
 * @date 2018-01-18
 */
public class MallardDuck implements Duck {

    @Override
    public void quack() {
        System.out.println("Quack");
    }

    @Override
    public void fly() {
        System.out.println("I'm flying");
    }
}
